//TODO: Marked for removal/replacement.  We don't believe this is used.
Ext.define('AmpleHarvest.views.article.cTabPanel',
		{
			extend			: 'Ext.tab.Panel',
			requires		:
			[
				"AmpleHarvest.views.article.cArticleView"
			],

			initComponent	: function()
			{
				var obj_This = this;

				this.callParent();

			},

			add_JsonObject	: function(obj_JsonContent, obj_JsonCenter)
			{
				this.m_str_id = 'id';
				if (obj_JsonContent)
				{
					this.m_obj_ArticleWin = Ext.create(
							"AmpleHarvest.views.article.cArticleView",
							{
								title	: "Content",
								flex	: 1
							}
					);
					this.add(this.m_obj_ArticleWin);

					this.m_obj_ArticleWin.add_JsonObject(obj_JsonContent);
				}

				if (obj_JsonCenter)
				{
					if (obj_JsonCenter.files)
					{
						var str_ServerId = "";
						var str_DataId = "";
						if (obj_JsonCenter.files.serverId)
						{
							str_ServerId = obj_JsonCenter.files.serverId;
						}

						if (obj_JsonCenter.files.id)
						{
							str_DataId = obj_JsonCenter.files.id;
						}
						this.m_obj_FileWindow = Ext
								.create(
										"AmpleHarvest.objects.GSfiles.cFilesGrid",
										{
											title			: "Files",
											m_str_ServerId	: str_ServerId,
											m_str_DataId	: str_DataId,
											flex			: 1
										}
								);

						this.add(this.m_obj_FileWindow);
					}

					if (obj_JsonCenter.network)
					{
						var str_ServerId = "";
						var str_DataId = "";
						if (obj_JsonCenter.network.serverId)
						{
							str_ServerId = obj_JsonCenter.network.serverId;
						}

						if (obj_JsonCenter.network.id)
						{
							str_DataId = obj_JsonCenter.network.id;
						}
						this.m_obj_NetworkWindow = Ext
								.create(
										"AmpleHarvest.objects.GSfiles.cFilesGrid",
										{
											title			: "Network",
											m_str_ServerId	: str_ServerId,
											m_str_DataId	: str_DataId,
											flex			: 1
										}
								);

						this.add(this.m_obj_NetworkWindow);
					}

					if (obj_JsonCenter.registry)
					{
						var str_ServerId = "";
						var str_DataId = "";
						if (obj_JsonCenter.registry.serverId)
						{
							str_ServerId = obj_JsonCenter.registry.serverId;
						}

						if (obj_JsonCenter.registry.id)
						{
							str_DataId = obj_JsonCenter.registry.id;
						}
						this.m_obj_RegistryWindow = Ext
								.create(
										"AmpleHarvest.objects.GSfiles.cFilesGrid",
										{
											title			: "Registry",
											m_str_ServerId	: str_ServerId,
											m_str_DataId	: str_DataId,
											flex			: 1
										}
								);

						this.add(this.m_obj_RegistryWindow);
					}
				}
			},

			highlight		: function(str_HlName, str_Class, str_Attrib)
			{
				if (this.m_obj_ArticleWin)
				{
					this.m_obj_ArticleWin.highlight(str_HlName, str_Class,
							str_Attrib
					);
				}
			}
		}
);